//
//  NOLoginViewController.m
//  AndCampus
//
//  Created by 史宵宵 on 2018/1/11.
//  Copyright © 2018年 史宵宵. All rights reserved.
//

#import "NOLoginViewController.h"
#import "YJLoginViewController.h"

@interface NOLoginViewController ()
@property (nonatomic,assign) NSInteger selectIndex;
@end

@implementation NOLoginViewController
- (instancetype)initWithIndex:(NSInteger )index{
    self = [super init];
    if (self) {
        self.selectIndex = index;
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view from its nib.
    if (self.selectIndex == 4) {
        self.loginButton.hidden = YES;
        self.plealseholderStr.text = @"该功能只针对与时老师和本校老师";
    }else{
        self.loginButton.hidden = NO;
    }
}
- (IBAction)loginButton:(id)sender {
    YJLoginViewController *loginVC = [[YJLoginViewController alloc] initWithSelectIndex:self.selectIndex];
    [self.navigationController pushViewController:loginVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
